package com.freight.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.freight.core.common.constant.CommonConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author huyingtai
 */
@Data
public class DriverInfoVo extends UserVo {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "车辆id")
    private Long vehicleId;

    @ApiModelProperty(value = "所有人名称")
    private String vehicleOwner;

    @ApiModelProperty(value = "交易量")
    private Integer relationship = 0;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "司机名字")
    private String nickName;

    @ApiModelProperty(value = "身份证号")
    private String num;

    @ApiModelProperty(value = "车牌号码")
    private String driverCode;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "登入地址")
    private String address;

    @ApiModelProperty(value = "上次登入時間")
    private String lastTime;

    @ApiModelProperty(value = "车辆认证状态")
    private Integer registStatus;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "驾驶证有效期时长")
    private Date endDate;

    @ApiModelProperty(value = "车辆一级类型")
    private String vehicleType;

    @ApiModelProperty(value = "车辆二级类型")
    private String vehicleLength;

    @ApiModelProperty(value = "证件状态 0未认证 1已认证 2审核中")
    private Integer driverUserStatus = CommonConstant.REGIST;
}